package com.itheima.app.manager.omsManager;

import com.itheima.commons.R;
import com.itheima.domain.db.oms.OmsCompanyAddress;
import com.itheima.service.omsService.CompanyAddressService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 收货地址
 *
 * @author DogeGuo
 */
@Component
public class OmsCompanyAddressManager {
    @DubboReference
    CompanyAddressService companyAddressService;

    /**
     * 获取所有收货地址
     *
     * @return
     */
    public R findAll() {
        List<OmsCompanyAddress> list = companyAddressService.findAll();

        return R.ok(list);
    }
}
